<html class="reftest-wait">
<title>Test with reftest-wait</title>
<link rel=match href=green.html>
<style>
:root {background-color:red}
</style>
<script>
setTimeout(function() {
  document.documentElement.style.backgroundColor = "green";
  document.documentElement.className = "";
}, 2000);
</script>
</html>
